<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@include file="common.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-US" />
<title>CSP</title>

<script>
if(top != self) {
    top.location.href = self.location.href;
}
    $(function() {

    	$( "#log_win" ).dialog({
    		autoOpen: true,
    		height: 400,
    		width: 600,
    		modal: false
    	});
      var opeForm;
      $(function() {
    
        opeForm = $('#opeForm');
        opeForm.url = 'doLogin.do';
    
        $('#username').focus();
        $('#loginBtn').click(userLogin);
        $('#clearBtn').click(clearOperation);
      });
    
      // reset form
      function clearOperation() {
        opeForm.resetForm();
      }
    
      function userLogin() {
        var options = {
          url : opeForm.url,
          type : 'post',
          success : function(operationType) {
            window.location.href = 'showMain.do';
          },
          error : function(XMLHttpRequest, textStatus, errorThrown) {
          }
        };
        opeForm.ajaxSubmit(options);
      }
    
    });
</script>

</head>
<body bgcolor="#DDDDDD">

  <div id="log_win" title="CSP Certificate Asscociation Registration">
  <form id="opeForm" name="opeForm" method="post">
    <table width="500" border="0" cellspacing="0" cellpadding="0" align="center">
      <tr>
        <td width="100">User Type: </td>
        <td width="300"><select id="type" name="model.USER_TYPE">
            <option value="1" selected="selected">CSP ADMIN</option>
            <option value="2">B/D ADMIN</option>
            <option value="3">B/D USER</option>
        </select></td>
      </tr>
      <tr>
        <td>UID: </td>
        <td><input type="text" id="bd_uid" name="model.BD_UID" value="" />
        </td>
      </tr>
      <tr>
        <td colspan="2">
          <div style="text-align: center; padding: 5px;">
                  <input type="button" id="loginBtn" name="loginBtn" value="Login" style="font-size: 90%;" />&nbsp;&nbsp;&nbsp;&nbsp;
                  <input type="button" id="clearBtn" name="clearBtn" value="Reset" style="font-size: 90%;" />&nbsp;&nbsp;&nbsp;&nbsp;
                </div>
        </td>
      </tr>
    </table>
  </form>
  </div>
  

</body>
</html>

